home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Input 64
/
Input_64_85-07_1985_Verlag_Heinz_Weise_de.d64
/
T R I
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
14KB
|
507 lines
100 poke50257,0
200 poke53280,0:poke53281,0
220 poke45,2:poke46,64:poke256*64,0:clr
221 poke2,0
224 dimp(6,19),a$(6),g$(6),g(6),w(6)
225 dimk$(9,6),e$(4),v1(6)
226 printchr$(147);:p$=" ":c$=chr$(18)
227 e$(1)=c$+" [213]ngueltig: "
228 e$(4)=c$+" [194]elegt : "
229 e$(2)=" [197]intrag : ":poke646,14
230 e$(3)=" [215]eiter : ":b1$=" "
231 cu=58640:db=30:b2$=" "
232 si=54272:v=53248:w8=si+4:w9=si+18
233 pokev+22,204
234 fori=0to7:poke2040+i,248+i:nexti
238 readuu:g(0)=peek(65):w(0)=peek(66)
239 pokev+23,127:pokev+24,23:pokev+28,1
240 pokev+27,86:pokev+29,127:pokev+39,7
242 pokev+40,4:pokev+41,8:pokev+42,7
243 pokev+43,4:pokev+44,7:pokev+45,3
244 pokev+46,1:pokev+37,10:pokev+38,5
245 fori=1to22:readua$:nexti
246 v1(0)=peek(65):p(0,0)=peek(66)
247 gosub250:gosub258
248 gosub275:goto318
250 pokev,46:pokev+1,77:pokev+2,65
251 pokev+3,57:pokev+4,106:pokev+5,87
252 pokev+6,134:pokev+7,67:pokev+8,166
253 pokev+9,77:pokev+10,191:pokev+11,72
254 pokev+12,231:pokev+13,87
255 pokev+14,111:pokev+15,69
256 return
258 h=4.5:pokesi+24,15
259 foruu=0to50:h=h+3
260 pokesi+5,255:pokesi+6,252
261 pokesi+1,240-h:pokew8,33
262 pokew8,32:pokew8,17:pokew8,16
263 nextuu:pokew8,0
264 pokesi+23,246:pokesi+24,31
265 pokesi+19,9:pokesi+20,255
266 pokesi+15,4:pokesi+14,10:pokesi+22,0
267 pokesi+12,5:pokesi+13,255
268 pokesi+8,4:pokesi+7,10:pokev+21,255
269 pokew9,129:pokesi+11,129
271 pokew9,128:pokesi+11,128
273 gosub275:return
275 pokesi+3,12:pokesi+2,15
276 pokesi+5,34:pokesi+19,34
277 pokesi+6,242:pokesi+20,242
278 pokesi+23,112
279 return
280 reads6,s7,s8,s9,da:ifs6>-3then282
281 poke65,v1(0):poke66,p(0,0):goto280
282 pokesi,s7:pokesi+1,s6:pokesi+14,s9
283 pokesi+15,s8:pokew8,65:pokew9,33
284 foruu=0toda-(db):nextuu
285 pokew8,64:pokew9,32
286 return
288 pokesi+11,0:pokesi+24,31:pokesi+9,0:pokesi+10,3
289 pokesi+12,255:pokesi+13,205
290 pokesi+8,31:pokesi,7:pokesi+11,65
291 pokesi+11,64:pokesi+8,15:pokesi+7,132
292 pokesi+11,65:pokesi+11,64
293 return
296 pokew8,0:pokesi+5,255:pokesi+6,251
297 pokesi,0:pokesi+1,100:pokew8,33:pokew8,32
298 return
300 k1%=rnd(0)*255
301 k2%=rnd(0)*200
302 k3%=(rnd(1)*7+.5)*2
303 pokev+k3%,k1%:pokev+1+k3%,k2%
305 gosub280:return
307 forx=1to5:ifw(x)>0then309
308 w(x)=int(rnd(1)*6)+1
309 gosub288:gosub296
310 nextx:poke214,0:poke211,35:syscu:printw1;
312 poke2,3:gosub803:return
314 ua$=right$(p$+str$(uu),3):poke199,1
315 return
318 x$=c$+chr$(150)+chr$(42)
319 fori=1to9:forj=1to6:gosub300
320 k$(i,j)=c$+chr$(150)+chr$(32)
321 nextj,i
322 forj=2to6:gosub300
323 ifj>3thenk$(3,j)=x$
324 ifj>3thenk$(7,j)=x$
325 ifj=3thenk$(5,j)=x$
326 gosub300
327 ifj=5thenk$(5,j)=x$
328 ifj=6thenk$(4,j)=x$
329 ifj=6thenk$(6,j)=x$
330 gosub300:k$(1,j)=x$:k$(9,j)=x$
331 nextj:k$(5,1)=x$:poke646,14:gosub300
332 fori=1to5:g$(i)="..........":gosub300:g(i)=0:nexti
333 gosub339:gosub358:gosub370:gosub386
334 gosub417:gosub431:goto448
339 fori=1to6:a$(i)="":k=0
340 gosub300:w1=0:nexti
341 ifpeek(2)=1then343
342 ifpeek(203)=64thengosub300:goto342
343 gosub250:gosub803
344 gosub275:return
358 printchr$(147):poke646,14:db=0
359 poke214,14:poke211,18:syscu
360 gosub264
361 foruu=1to18:printchr$(164);:nextuu:poke214,15:poke211,18:syscu
362 printc$;" [211]core - [212]able : "
363 forz=16to20
364 poke214,z:poke211,17:syscu
365 uu=g(z-15):gosub314
367 printz-15;"[157]. ";g$(z-15);" ";ua$;" ":nextz:uu=g(6):gosub314
368 poke214,21:poke211,18:syscu
369 print" [204]ast [211]core ";ua$;" ":return
370 poke214,14:poke211,2:syscu
371 poke646,5:poke199,0
372 foruu=1to10:printchr$(164);:nextuu:print
373 print" ";c$;" [208] = [208]lay "
374 print" ";c$;" [201] = [201]nfo "
375 print" ";c$;" ";:poke204,0
376 getx$:ifx$=""thengoto376
377 ifpeek(207)then377
378 poke204,1
379 ifx$="_"thengosub275:goto376
380 ifx$="p"thenreturn
381 ifx$<>"i"then370
382 poke646,7:gosub832:gosub358:goto370
386 print:print
387 print" [193]nzahl [211]pieler"
388 print" - 6 max. -":printspc(7);"?";chr$(157);
389 poke204,0
390 getx$:ifx$<"1"orx$>"6"thengosub296:goto390
391 a=asc(x$):a=a-48
393 ifpeek(207)then393
394 poke204,1:gosub803:printx$;
396 fori=1toa
397 poke214,23:poke211,2:syscu
398 printc$;" [206]ame [211]pieler";i;": ..........";
400 poke211,20:syscu:a$="":poke204,0
401 getx$:ifx$=""thengosub296:goto401
402 gosub803:x=asc(x$)
403 ifx=13then408
404 ifx=95then397
405 if(x<32orx>127)and(x<192orx>233)then401
406 iflen(a$)>9then409
407 printx$;:a$=a$+x$:goto401
408 iflen(a$)<10thena$=a$+".":goto408
409 a$(i)=a$
411 ifpeek(207)then411
412 poke204,1:printc$p$;
413 nexti:return
417 pokev+33,9:pokev+21,0:poke646,7:db=0
419 poke65,g(0):poke66,w(0):gosub264:printchr$(147);
420 fori=1to2400:next:pokev+21,0
421 fori=1to22:read ua$
422 ifi=2then printchr$(30);
423 ifi=3then printchr$(159);
424 ifi=10then printchr$(158);
425 ifi=18then printchr$(154);
426 ifi=21then printchr$(30);
427 ifi=1ori=2ori=9ori=17ori=21then printc$;
428 print" ";ua$:nexti:ua$=""
429 return
431 poke646,3:printchr$(19)
432 fori=1to20
433 printchr$(166)
434 nexti
435 forz=1to20:fors=14to38step4
436 poke214,z:poke211,s:syscu
437 ifs=38thenprintchr$(166);:goto439
438 printchr$(221);
439 nexts,z
440 poke646,13:poke214,1:poke211,15:syscu:fori=1toa
441 printc$chr$(166)chr$(166)chr$(166)chr$(146)chr$(221);:nexti
442 fori=1to6:forj=1to19:p(i,j)=0
443 nextj,i
444 return
448 fori=1to13
449 forj=1toa:sw=1
450 gosub744
451 forq=1to5:w(q)=0:w1(q)=0:nextq
452 forw1=1to3
453 gosub307
454 gosub760:sw=0:gosub628
455 ifv8=1thengosub457:goto467
456 goto467
457 gosub250:gosub258:db=0:pokev+21,255
458 foruu=2040to2047:pokeuu,rnd(0)*256:nextuu
459 k1%=rnd(0)*3:k2%=rnd(0)*3:k1%=k1%*3+16:k2%=k2%*3
460 pokev+17,k1%:pokev+22,k2%
461 foruu=vtov+15:pokeuu,rnd(0)*256:nextuu
462 db=db+1:ifdb<50then458
463 pokev+17,27:pokev+22,204
464 foruu=0to7:poke2040+uu,248+uu:nextuu
465 pokev+21,0:pokev+30,0:db=0
466 foruu=1to511:nextuu:gosub250:return
467 ifw1>=3then497
468 poke214,23:poke211,26:syscu
469 printe$(3);:poke204,0
470 getx$:ifx$=""then470
471 ifpeek(207)then471
472 poke204,1
473 x=asc(x$)
474 ifx=13then489
475 x=x-48
476 ifx=9then479
477 ifx=8then454
478 goto480
479 forx=1to5:gosub482:nextx:goto489
480 ifx<1orx>5then468
481 gosub482:goto468
482 w(x)=w(x)*-1:s=(-3)+(x*4)
483 forz=22to24
484 poke214,z:poke211,s:syscu
485 print;c$" ";
486 nextz
487 return
489 forx=1to5
490 ifw(x)<0then493
491 nextx
492 goto497
493 nextw1
497 gosub628
498 ifv8=1andp(j,13)>0thenk=1:goto500
499 k=0
500 poke214,23:poke211,26:syscu
501 printe$(2);
502 poke204,0
503 getx$:ifx$=""thengosub296:goto503
504 ifpeek(207)then504
505 poke204,1:gosub803
506 ifx$=chr$(13)andw1<3then468
507 x=asc(x$):ifx>48andx<58thenx=x-48:goto512
508 ifx>132andx<137thenx=x-123:goto512
511 goto516
512 ifx>0andx<7then521
513 ifp(j,x+1)<>0then517
514 onx-6goto549,564,573,586,602,616,623
516 d=1:gosub803:gosub795:goto500
517 d=4:gosub803:gosub795:goto500
521 ifp(j,x)<>0then517
522 q=0
523 fory=1to5
524 ifw(y)=xthenq=q+x
525 nexty
526 x1=q-(x*3)
527 s=14+((j-1)*4+1)
528 p(j,x)=q
529 p(j,7)=p(j,7)+x1
530 p(j,16)=p(j,16)+q
531 p(j,19)=p(j,19)+q
532 ifk=1andp(j,13)>0thenp(j,18)=p(j,18)+100:p(j,19)=p(j,19)+100
533 ifp(j,16)>62thengosub541
534 z=1+x
535 poke214,z:poke211,s:syscu
536 ifp(j,x)=0thenp(j,x)=-1:print"---";:goto538
537 uu=p(j,x):gosub314:printua$;
538 poke214,8:poke211,s:syscu
539 uu=p(j,7):gosub314:printchr$(154);ua$;
540 goto662
541 ifp(j,17)=35then545
542 p(j,17)=35:p(j,19)=p(j,19)+35
543 poke214,18:poke211,s:syscu
544 uu=p(j,17):gosub314:printua$;
545 return
549 gosub640
550 v8=0
551 forx3=1to6
552 ifv1(x3)>=3thenv8=1
553 nextx3
554 ifv8=1thengosub646
555 ifv8=0thenq=0
556 gosub654
557 p(j,15)=p(j,15)+q
558 p(j,19)=p(j,19)+q
559 ifk=1andp(j,13)>0thenp(j,18)=p(j,18)+100:p(j,19)=p(j,19)+100
560 goto662
564 gosub640
565 v8=0
566 forx3=1to6
567 ifv1(x3)>=4thenv8=1
568 nextx3
569 goto554
573 gosub640
574 v8=0
575 v9=0
576 forx3=1to6
577 ifv1(x3)=3thenv8=1
578 ifv1(x3)=2thenv9=1
579 nextx3
580 ifv8<>1orv9<>1thenq=0:goto582
581 q=25
582 goto556
586 gosub628
587 v8=0:forb=1to5:v8=v8+v1(b):nextb
588 ifv8=5then598
589 v8=0:forb=2to6:v8=v8+v1(b):nextb
590 ifv8=5then598
591 v8=0:forb=1to4:v8=v8+v1(b):nextb
592 ifv8=4then598
593 v8=0:forb=2to5:v8=v8+v1(b):nextb
594 ifv8=4then598
595 v8=0:forb=3to6:v8=v8+v1(b):nextb
596 ifv8=4then598
597 q=0:goto556
598 q=30:goto556
602 gosub628
603 ifv8>4then606
604 q=0
605 goto556
606 v8=0
607 forx3=1to6
608 v8=v8+v1(x3)*x3
609 nextx3
610 ifv8=15orv8=20thenq=40:goto556
611 q=0
612 goto556
616 gosub628
617 ifv8<>1thenq=0:goto556
618 q=50
619 goto556
623 gosub646
624 goto556
628 v8=0
629 forx3=1to6:v1(x3)=0:nextx3
632 forx3=1to5:v1(w(x3))=1:nextx3
635 forx3=1to6:v8=v8+v1(x3):nextx3
638 return
640 forx3=1to6:v1(x3)=0:nextx3
641 forx3=1to5:v1(w(x3))=v1(w(x3))+1:nextx3:return
646 q=0
647 forx3=1to5:q=q+w(x3):nextx3:return
654 x=x+1:z=x+1
655 p(j,x)=q:poke646,13
656 s=14+((j-1)*4+1)
657 poke214,z:poke211,s:syscu
658 ifp(j,x)=0thenp(j,x)=-1:printc$"---";:goto660
659 uu=p(j,x):gosub314:printua$;
660 return
662 forz=16to20
663 ifp(j,z-1)=0then668
664 ifz=16thenpoke646,10
665 ifz=20thenpoke646,5
666 poke214,z:poke211,s:syscu
667 uu=p(j,z-1):gosub314:printua$;
668 poke646,13:nextz
669 nextj,i
673 y=0
674 fori=1toa
675 ify>p(i,19)then677
676 y=p(i,19):x=i
677 nexti
678 poke646,10
679 forz=21to24
680 poke214,z:poke211,0:syscu
681 printb1$;
682 nextz:poke646,7
684 poke214,22:poke211,4:syscu
686 printc$;" [211][201][197][199][197][210]: ";chr$(157);a$(x);y;chr$(157);" [208]unkte"
687 gosub457
688 poke65,v1(0):poke66,p(0,0)
691 g(6)=y
693 forj=1toa
694 fori=1to5
695 ifg(i)<p(j,19)thengosub735:goto697
696 nexti
697 nextj:pokev+21,0
705 z=24:poke646,13
709 poke214,z:poke211,9:syscu
710 print" [208]lay again (j/n) ?";chr$(154);:poke204,0:pokesi+24,31:gosub275
711 getx$:ifx$=""thengosub280:goto711
712 ifx$<>"j"andx$<>"n"then711
713 ifpeek(207)then713
714 poke204,1
715 ifx$="n"then784
716 gosub280
717 poke214,z:poke211,7:syscu
718 print"[199]leiche [194]esetzung (j/n) ?";
719 poke204,0
720 getx$:ifx$=""thengosub280:goto720
721 ifx$<>"j"andx$<>"n"then720
722 ifpeek(207)then722
723 poke204,1:gosub280
725 fori=0to12:poke211,0:poke214,12-i:syscu
726 printb1$:gosub280
727 poke211,0:poke214,12+i:syscu
728 printb1$:nexti:pokev+21,0:gosub803
732 ifx$="j"then334
733 ifx$="n"thenpoke2,1:goto333
735 forx3=5toistep-1
736 g(x3)=g(x3-1):g$(x3)=g$(x3-1):nextx3
738 g(i)=p(j,19):g$(i)=a$(j):return
744 printc$chr$(150);
745 poke214,0:poke211,15:syscu
746 printb2$;
747 poke211,15:syscu:printa$(j);
748 ifj=1thenx=a:goto750
749 x=j-1
750 z=1:s=15+((x-1)*4):poke646,13
751 poke214,z:poke211,s:syscu
752 foruu=1to3:printchr$(166);:nextuu
753 s=15+((j-1)*4):ua$=right$(str$(j),1)
754 poke214,z:poke211,s:syscu
755 print"-";ua$;"-";:return
760 s=-3
761 forx3=1to5:s=s+4:ifsw=1then764
762 ifw(x3)>=0thennextx3:goto769
763 w(x3)=w(x3)*-1
764 forz=22to24:poke214,z:poke211,s:syscu:print" ";:nextz,x3
769 s=-3:poke646,14
770 forx=1to5:s=s+4:poke214,22:poke211,s:syscu
773 fork=1to9
774 ifk=4thenpoke214,23:poke211,s:syscu
775 ifk=7thenpoke214,24:poke211,s:syscu
776 printk$(k,w(x));:nextk,x:poke646,13
779 return
783 poke65,v1(0):poke66,p(0,0)
784 pokev+33,0:printchr$(147):gosub358
785 poke214,16:poke211,4:poke646,10:syscu:print"[164][164][164][164][164][164][164][164][164]"
786 printspc(4)c$" [199] [193] [205] [197] ":printspc(4)c$" ":printspc(4)c$" o v e r "
787 pokev+21,255:poke214,24:poke211,9:syscu
788 poke646,7:printc$" _ [212]aste druecken ";
789 getx$:ifx$<>chr$(95)thengosub280:goto789
790 printchr$(147);:pokev+21,0:pokev+22,200:pokesi+24,0:pokew8,0:pokew9,0
791 pokev+24,21:poke657,0:end
795 ifpeek(207)then795
796 poke204,1
797 poke214,23:poke211,26:syscu
798 poke646,7:printe$(d);:poke204,0
799 getx$:ifx$=""thengosub288:goto799
800 ifpeek(207)then800
801 poke204,1:poke211,26:syscu
802 printb2$" ";chr$(153);
803 pokesi+5,240:pokesi+6,240
804 pokesi+19,240:pokesi+20,240
805 pokesi+12,240:pokesi+13,240:return
832 pokev+21,0:pokev+22,200
833 printchr$(147);spc(12);c$;" [212]rickly-[201]nfo ";chr$(17)
834 print" [196]ie [211]pielregeln des bekannten [203]niffel-"
835 print" spiels sind entsprechend anzuwenden.";chr$(17)
836 print" [196]ie [211]core-[212]abelle wird angezeigt, wenn"
837 print" die [211]pielerbesetzung sich aendern soll"
838 print" und nach [194]eendigung des [211]piels.";chr$(17)
839 print" [196]ie [212]astaturbelegung ist aus dem [211]piel-"
840 printchr$(145)" aufbau ersichtlich.";chr$(17)
841 print" [198]olgende [212]asten haben [218]usatzfunktionen:"
842 printspc(5);"_ = [206]amensangabe korrigieren"
843 printspc(5);"8 = letzten [215]urf nochmals anzeigen"
844 printspc(5);"9 = kompletter, neuer [215]urf";chr$(17)
845 print" [196]er [211]pieler kann seine [208]unktzahl nach"
846 print" <[210][197][212][213][210][206]> setzen, ohne alle [215]uerfe ge-"
847 print" spielt zu haben."
848 print" [196]as [211]piel wird mit nochmaligem <[210][197][212][213][210][206]>"
849 printchr$(145);" fortgesetzt ([214]ersehen), falls noch"
850 print" [215]uerfe zur [214]erfuegung stehen.";:poke65,v1(0):poke66,p(0,0)
851 poke2,4:pokesi+24,21:gosub275
852 getx$:ifx$=""thengosub280:goto852
853 gosub803:pokesi+24,31:poke2,3:pokev+22,204:return
924 data0
925 data"[211]pieler-[206]ame: [215]urf-[206]r:- - "
926 data"[168][168][211]pieler....[168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168]"
927 data" 1=[197]iner....."," 2=[218]weier...."
928 data" 3=[196]reier...."," 4=[214]ierer...."
929 data" 5=[198]uenfer..."," 6=[211]echser..."
930 data"[168] + / - "
931 data" 7=3er [208]asch"," 8=4er [208]asch"
932 data" 9=[198]ull [200]ouse"
933 data"[198]1=[203]l. [211]tr..","[198]3=[199]r. [211]tr.."
934 data"[198]5=1. [212][210][201][195][203][204][217]","[198]7=[195]hance...."
935 data"[168][211]umme unten. "
936 data" [211]umme oben.."," [194]onus (+35)."
937 data" w. [212][210][201][195][203][204][217]'s"
938 data"[168] [212][160][207] [212] [193] [204] [168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168][168]"
939 data"(1) (2) (3) (4) (5)"
941 data26,20,3,66,65,29,69,6,133,65
942 data26,20,4,226,65,29,69,4,27,65
943 data26,69,3,66,65,46,118,6,133,65
944 data39,18,4,226,65,32,219,4,27,65
945 data26,20,4,90,65,29,69,8,180,65
946 data26,20,6,133,65,29,69,5,123,65
947 data26,20,4,90,65,43,219,8,180,65
948 data34,207,6,133,65,26,20,5,123,65
949 data34,207,2,231,65,29,69,5,207,65
950 data23,59,3,169,65,29,69,2,231,65
951 data26,20,4,90,65,34,207,8,180,65
952 data26,20,6,133,65,21,237,5,123,65
953 data26,20,4,27,65,23,59,4,27,65
954 data21,237,4,27,65,23,59,4,226,65
955 data19,137,4,27,195,13,10,0,0,65
956 data14,162,0,0,65,16,109,0,0,65
957 data17,103,4,90,65,19,137,8,180,65
958 data21,237,6,133,65,23,59,5,123,65
959 data26,29,4,90,65,29,69,8,180,65
960 data32,219,6,133,65,34,207,5,123,65
961 data34,207,4,90,65,29,69,8,180,65
962 data23,59,6,133,65,29,69,5,123,65
963 data26,20,4,90,65,34,207,8,180,65
964 data32,219,6,133,65,29,69,5,123,65
965 data26,20,4,90,65,34,207,8,180,65
966 data26,20,6,133,65,21,237,5,123,65
967 data26,20,3,66,65,23,59,6,133,65
968 data21,237,4,226,65,19,137,4,27,65
969 data17,103,4,90,65,21,237,8,180,65
970 data26,20,6,133,65,21,237,5,123,65
971 data17,203,4,90,65,0,0,4,226,55,0,0
972 data5,123,55,0,0,5,207,55,0,0,6,39
973 data55,-3,-3,-3,-3,0